import Vue from 'vue'

import 'normalize.css/normalize.css'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

import '@/styles/index.scss' // 全局样式
import App from './App'
import router from './router'
import store from './store'

import '@/icons' // icon
import '@/permission' // 权限控制
import { hasBtnPermission } from './utils/permission' // 按钮权限控制

Vue.use(ElementUI, { size: 'small', zIndex: '3000' })

Vue.config.productionTip = false

Vue.prototype.hasPerm = hasBtnPermission

new Vue({
    el: '#app',
    router,
    store,
    render: h => h(App)
})
